import request from '@/utils/request';

export async function queryClassgrade(params) {
  return request('/api/classgrade', {
    params
  });
}

export async function removeClassgrade(params) {
  return request('/api/classgrade', {
    method: 'DELETE',
    data: {
      ...params
    },
  });
}

export async function addClassgrade(params) {
  return request('/api/classgrade', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

export async function updateClassgrade(params) {
  return request('/api/classgrade', {
    method: 'put',
    data: {
      ...params
    },
  });
}
